home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Shareware City / Developers / BoxMaker++ / µZak ƒ / µZakshell.h < prev    next >
Encoding:
Text File  |  1995-01-20  |  1.4 KB  |  63 lines  |  [TEXT/KAHL]

  1.  
  2. enum
  3. {
  4.     iShowPreferences = 1,
  5.     iHideOnLaunch,
  6.     iNeither,
  7.     iRequeue,
  8.     iCancelCurrent,
  9.     iCancelQueue,
  10.     iNameOfFile,
  11.     iQueueLength
  12. };
  13.  
  14. class muZaksettings
  15. {
  16.     public:
  17.         short wie_van_de_drie;
  18.         Boolean requeue_after_playing;
  19. };
  20.  
  21. typedef preferences<muZaksettings> muZakPrefs;
  22.  
  23. #pragma template preferences<muZaksettings>;
  24.  
  25. typedef queue<AliasHandle> alias_queue;
  26.  
  27. #pragma template queue<AliasHandle>;
  28.  
  29. class muZakshell : public boxmaker, public muZakPrefs, public alias_queue
  30. {
  31.     public:
  32.         muZakshell( Str255 prefsFileName,
  33.             muZaksettings &defaultsettings, unsigned long queueLength);
  34.         ~muZakshell();
  35.  
  36.     protected:
  37.         virtual void OpenDoc( Boolean opening);
  38.         virtual void OpenApp() {};    // do not show preferences on OAPP
  39.         virtual void HandleDialogEvent( short itemHit, DialogPtr theDialog);
  40.         //
  41.         // for added speed we return false from 'mayEnterFolder' when the
  42.         // queue is full.
  43.         //
  44.         virtual Boolean mayEnterFolder( Boolean opening);
  45.  
  46.         virtual Boolean EventloopHook();
  47.  
  48.         void StartAMovie();
  49.         void StopCurrentMovie( Boolean dispose_of_alias = true);
  50.         void SetButtons();
  51.         void SetRequeueButton();
  52.         void updateName( Str63 theName);
  53.         void updateNumber();
  54.         
  55.     private:
  56.         Movie theMovie;
  57.         short theMovieFile;
  58.         AliasHandle theAlias;
  59. };
  60.  
  61. pascal OSErr MyCoverProc( Movie theMovie, RgnHandle changedRgn, long refcon);
  62. pascal OSErr MyUncoverProc( Movie theMovie, RgnHandle changedRgn, long refcon);
  63.